![]() |
KCGetIndKeychain |
||||
Header: | Keychain.h | Carbon status: | Under Evaluation | |
Obtains an indexed keychain reference.
OSStatus KCGetIndKeychain ( UInt16 index, KCRef *keychain );
An index of the list of available keychains. Pass a value between 1 and the number returned by the function KCCountKeychains.
A pointer to the keychain reference corresponding to the index in the index parameter.
A result code. The result code errKCNoSuchKeychain indicates that the index value is out of range.
To guarantee correct operation, you should call the function KCCountKeychains once before calling KCGetIndKeychain.
The memory that the keychain reference occupies must be released by calling the function KCReleaseKeychain when you are finished with it.
Available beginning with Keychain Manager 1.0.
Under evaluation for Carbon. Available in CarbonLib 1.0 and later when KeychainLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by KeychainLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)